package com.zy;

/**
 * @Author zhaoyi
 * @date 2019/10/23
 */
public class TicketMain {

    public static void main(String[] args) {
        Ticket ticket = new Ticket();

        for (int j = 0; j < 3; j++) {
            new Thread(() -> {
                for (int i = 0; i < 100; i++) {
                    ticket.sale();
                }
            }, String.valueOf(j)).start();
        }
    }

}
